package main

import (
	"github.com/go-kratos/kratos/v2/log"
	"net/http"
	_ "net/http/pprof"
	"stwin.net/demo/cmd"
)

func main() {
	app := cmd.NewApp()
	go func() {
		_ = http.ListenAndServe("0.0.0.0:6060", nil)
		// 使用 ip + 端口:/debug/pprof/ 查看堆栈内存使用信息
	}()
	if err := app.Run(); err != nil {
		log.Fatal(err)
	}
}
